for each textbox c#

64

for each textbox c# -

foreach (Control x in this.Controls)
{
  if (x is TextBox)
  {
    ((TextBox)x).Text = String.Empty;
  }
}

Comments

Submit
0 Comments